import { createRouter, createWebHashHistory } from 'vue-router';
const routers = [
  {
    path: '/login',
    name: 'login',
    component: () => import('/@/views/login/index.vue'),
  },
  {
    path: '/',
    name: 'layout',
    component: () => import('/src/layout/index.vue'),
  },
];

export const router = createRouter({
  history: createWebHashHistory(import.meta.env.VITE_PUBLIC_PATH),
  routes: routers,
  strict: true,
  scrollBehavior: () => ({ left: 0, top: 0 }),
});
